package com.vehicle.bean;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 校园车辆管理系统
 * @since 2023-05-14
 */
@Data
  @EqualsAndHashCode(callSuper = false)
    @ApiModel(value="Car对象", description="")
public class Car implements Serializable {

    private static final long serialVersionUID=1L;

      @ApiModelProperty(value = "车辆序号")
        @TableId(value = "car_id", type = IdType.AUTO)
      private Integer carId;

      @ApiModelProperty(value = "车辆类型")
      private Integer categoryId;

      @ApiModelProperty(value = "车牌号")
      private String plateNumber;

      @ApiModelProperty(value = "车辆类型图片")
      private String imagUrl;

      @ApiModelProperty(value = "是否删除")
      @TableLogic
    private Integer deleted;

      @ApiModelProperty(value = "创建时间")
      @TableField(fill = FieldFill.INSERT)
      private LocalDateTime createTime;

      @ApiModelProperty(value = "车辆所绑定的用户")
      private Integer userId;


}
